<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加诗歌</title>
    {% comment %} <link rel="stylesheet" href="{% static 'css/styles.css' %}"> {% endcomment %}
</head>
<body>
    {% if error_msg %}
    <div class="alert alert-danger">{{ error_msg }}</div>
    {% endif %}
    <header>
        <h1>增加新的诗歌</h1>
    </header>
    <main>
        <form action="{% url 'svc_add' %}" method="post">
            {% csrf_token %}
            <div>
                <label for="name">标题:</label>
                <input type="text" id="title" name="title" required>
            </div>
            <div>
                <label for="description">内容:</label>
                <textarea id="content" name="content" rows="4" required></textarea>
            </div>
            <div>
                <button type="submit">添加诗歌</button>
            </div>
        </form>
    </main>
    <footer>
        <p>&copy; 2023 Your Company</p>
    </footer>
</body>
</html>